package com.cp.admin.modular.user.model;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 充值订单表
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-25
 */
@TableName("user_order")
public class UserOrder extends Model<UserOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    private Long id;
    /**
     * 充值账户
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 充值金额
     */
    private BigDecimal amount;
    /**
     * 类型 0充值豌豆 1充值vip
     */
    private Integer types;
    /**
     * vip时限 单位： 天
     */
    @TableField("time_limit")
    private Integer timeLimit;
    /**
     * 充值豌豆数量
     */
    @TableField("charge_peas_number")
    private BigDecimal chargePeasNumber;
    /**
     * 充值方式0微信1支付宝
     */
    private Integer mode;
    /**
     * 0 未支付1已支付-1订单作废
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getTypes() {
        return types;
    }

    public void setTypes(Integer types) {
        this.types = types;
    }

    public Integer getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(Integer timeLimit) {
        this.timeLimit = timeLimit;
    }

    public BigDecimal getChargePeasNumber() {
        return chargePeasNumber;
    }

    public void setChargePeasNumber(BigDecimal chargePeasNumber) {
        this.chargePeasNumber = chargePeasNumber;
    }

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserOrder{" +
        "id=" + id +
        ", userId=" + userId +
        ", amount=" + amount +
        ", types=" + types +
        ", timeLimit=" + timeLimit +
        ", chargePeasNumber=" + chargePeasNumber +
        ", mode=" + mode +
        ", status=" + status +
        ", createTime=" + createTime +
        "}";
    }
}
